-- GENERATED SPELL FOR [Ironpatch] --


function spell0_2547(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_2547', 578, 1)
end

function spell1_2547(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2547', 8307, 1)
end

function Sorts_2547(pUnit, Event)
local choix_sorts_2547 = math.random(0, 1)
if choix_sorts_2547 == 0 then
pUnit:RegisterEvent('spell0_2547', 1, 1)
end
if choix_sorts_2547 == 1 then
pUnit:RegisterEvent('spell1_2547', 1, 1)
end
end

function mob2547_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2547', math.random(1500, 3000), 1)
end

function mob2547_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2547_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2547_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2547, 1, 'mob2547_Action')
RegisterUnitEvent(2547, 2, 'mob2547_Leave')
RegisterUnitEvent(2547, 3, 'mob2547_Kill')
RegisterUnitEvent(2547, 4, 'mob2547_Die')
